{% extends 'base.html.twig' %}

{% block body %}
    <h1>Product</h1>

    <table>
        <tbody>
            <tr>
                <th>Id</th>
                <td>{{ product.id }}</td>
            </tr>
            <tr>
                <th>Cid</th>
                <td>{{ product.cid }}</td>
            </tr>
            <tr>
                <th>No</th>
                <td>{{ product.no }}</td>
            </tr>
            <tr>
                <th>Name</th>
                <td>{{ product.name }}</td>
            </tr>
            <tr>
                <th>Price</th>
                <td>{{ product.price }}</td>
            </tr>
            <tr>
                <th>Marketprice</th>
                <td>{{ product.marketPrice }}</td>
            </tr>
            <tr>
                <th>Stockprice</th>
                <td>{{ product.stockPrice }}</td>
            </tr>
            <tr>
                <th>Num</th>
                <td>{{ product.num }}</td>
            </tr>
            <tr>
                <th>Searchinfo</th>
                <td>{{ product.searchInfo }}</td>
            </tr>
        </tbody>
    </table>

    <ul>
        <li>
            <a href="{{ path('product_index') }}">Back to the list</a>
        </li>
        <li>
            <a href="{{ path('product_edit', { 'id': product.id }) }}">Edit</a>
        </li>
        <li>
            {{ form_start(delete_form) }}
                <input type="submit" value="Delete">
            {{ form_end(delete_form) }}
        </li>
    </ul>
{% endblock %}
